package com.blackwing.controller;

import com.blackwing.dao.TestDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
public class TestController {

    @Autowired
    TestDao testDao;

    @ResponseBody
    @RequestMapping("/test1")
    public String test1(){
        System.out.println("test1********************************************");
        testDao.test1();
        return "test1";
    }

    @RequestMapping("/test2")
    public String test2(){
        System.out.println("test2********************************************");
        return "test2";
    }
}
